package com.jichangxiu.server.platform.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jichangxiu.server.platform.entity.po.PlatformUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * PlatformUserMapper:
 *
 * @author Jcx
 * @create 2023-03-08 21:10
 */
@Mapper
public interface PlatformUserMapper extends BaseMapper<PlatformUser> {

    /**
     * 根据 提供的信息查询用户
     *
     * @param platformUser 用户信息
     * @return 数据库对象
     */
    @InterceptorIgnore(tenantLine = "true")
    public PlatformUser getUserByInfo(@Param("platformUser") PlatformUser platformUser);

    /**
     * 分页查询用户列表
     *
     * @param platformUser 用户信息
     * @param page         分页对象
     * @return 用户列表
     */
    public List<PlatformUser> pageList(@Param("platformUser") PlatformUser platformUser, @Param("page") Page<PlatformUser> page);

}
